import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class CabinetArrangement {
  /**
   * 查询仓库列表
   */
  static list(data = {}) {
    return request.get(`${URL.ocean}/ocean-container/list`, data)
  }
  static queryList(data = {}) {
    return request.get(`${URL.ocean}/ocean-container/queryList`, data)
  }


  /**
   * 查询仓库详情
   */
  static getInfo(id) {
    return request.get(`${URL.ocean}/ocean-container/getInfo/${id}`)
  }
  /**
   * 删除仓库
   */
  static remove(ids) {
    return request.delete(`${URL.ocean}/ocean-container/remove`, ids)
  }
  /**
   * 新增仓库
   */
  static add(data = {}) {
    return request.post(`${URL.ocean}/ocean-container/add`, data)
  }
  /**
   * 修改仓库
   */
  static edit(data = {}) {
    return request.put(`${URL.ocean}/ocean-container/edit`, data)
  }

  static batchAdd(data = {}) {
    return request.post(`${URL.ocean}/ocean-container/batchAdd`, data)
  }

  static reset(data = {}) {
    return request.post(`${URL.ocean}/ocean-container/reset`, data)
  }

  static getByIds(data = {}) {
    return request.post(`${URL.ocean}/ocean-container/getByIds`, data)
  }

  static removeBoundOrder(data = {}) {
    return request.put(`${URL.ocean}/ocean-container/removeBoundOrder`, data)
  }

  static editLoadingExtend(data = {}) {
    return request.put(`${URL.ocean}/ocean-container/editLoadingExtend`, data)
  }
}
